home *** CD-ROM | disk | FTP | other *** search
- Private Sub cmdTrain_Click()
-
- Dim NSApp As Object
- Dim NSBB As Object
- Dim mseArray As Variant
- Dim finalMSE As Single
- Dim numberOfEpochs As Integer
-
- Set NSApp = CreateObject("NeuroSolutions.Application")
- Set NSBB = NSApp.activeBreadboard
-
- NSApp.maximize
-
- NSBB.send "control. setEpochs ( 500 )"
- numberOfEpochs = txtEpochs.Text
- NSBB.send "control. setEpochs ( " & numberOfEpochs & " )"
- NSBB.send "dataStorage. setBufferLength ( " & numberOfEpochs & " )"
- NSBB.send "dataStorage. setMessageEvery ( " & numberOfEpochs & " )"
-
- NSBB.Select "hidden1SynapseBackpropGradient", False
- NSBB.Select "hidden1AxonBackpropGradient", True
- NSBB.Select "outputSynapseBackpropGradient", True
- NSBB.Select "outputAxonBackpropGradient", True
- NSBB.send "activeSelection. setStepSize ( " & txtStepSize.Text & " )"
- NSBB.send "activeSelection. setMomentumRate ( 0.800000 )"
-
- NSBB.send "trainingCostProbe. openEngineWindow ( )"
-
- NSBB.Select "Null", False
-
- NSBB.send "control. resetNetwork ( )"
- NSBB.send "control. runNetwork ( )"
-
- mseArray = NSBB.send("dataStorage.getProbeData()")
-
- finalMSE = mseArray(numberOfEpochs - 1, 0)
-
- txtFinalMSE.Text = Format(finalMSE, "0.00000")
-
- End Sub
-
- Private Sub Label1_Click()
-
- End Sub
-
-
-